package com.axxc.cloud.model.query;

import java.io.Serializable;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import com.axxc.cloud.model.exception.BaseForm;

public class PageQueryVo extends BaseForm<PageQueryVo> implements Serializable {
	private static final long serialVersionUID = 1L;

	@NotNull(message = "pageNum 不能为null")
	@Min(value = 1, message = "pageNum最小值1,最大值1000")
	@Max(value = 1000, message = "pageNum最小值1,最大值1000")
	private Integer pageNum;
	@NotNull(message = "pageSize 不能为null")
	@Min(value = 1, message = "pageSize最小值1,最大值1000")
	@Max(value = 1000, message = "pageSize最小值1,最大值1000")
	private Integer pageSize;

	public Integer getPageNum() {
		super.validateParam(this);
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

}
